<?php

namespace StarCloud\Library\Sdk;

use Phalcon\Di;

class Tywx
{

    use HttpCurl;

    /* @var $httpClient HttpClient */
    private $httpClient = null;

    private $apiKey  = '1212';

    public function __construct()
    {
        $this->httpClient = Di::getDefault()->get('httpClient');
        $this->cacheClass = Di::getDefault()->get('redis');
    }

    public function aiTextToImg($text)
    {
        $url = "https://dashscope.aliyuncs.com/api/v1/services/aigc/text2image/image-synthesis";

        $header = [
            'Content-Type' => 'application/json',
            'X-DashScope-Async' => 'enable',
        ];
    }



}

